<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
	<?php
		$con = mysql_connect("localhost","root","") or die("khong the ket noi CSDL");
		mysql_select_db("mba",$con) or die("Khong the chon CSDL");
		$result = mysql_query("SELECT * FROM don_vi");
		echo "<table border = '1' width = '500'>";
		echo "<tr><td width = '20%'>Ma Don Vi</td>";
		echo "<td width = '40%'>Ten Don Vi</td>";
		echo "<td width = '20%'>Dia Chi Don Vi</td>";
		echo "<td width = '20%'>Lien He Don Vi</td></tr>";
		while($row = mysql_fetch_array($result)){
			echo "<tr>";
			echo "<td>".$row['MA_DON_VI']."</td>";
			echo "<td>".$row['TEN_DON_VI']."</td>";
			echo "<td>".$row['DIA_CHI_DV']."</td>";
			echo "<td>".$row['LIEN_HE_DV']."</td>";
			echo "</tr>";
		}
		echo "</table>";
	?>
</body>
</html>
